home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / f90 / ibset.z / ibset
Encoding:
Text File  |  1998-10-30  |  1.6 KB  |  47 lines

  1. IBSET(3I)                                              Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      IIBBSSEETT - Sets one bit
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IIBBSSEETT (([II==]_i,, [PPOOSS==]_p_o_s))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, and IRIX systems
  12.  
  13. SSTTAANNDDAARRDDSS
  14.      Fortran 90
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The IIBBSSEETT intrinsic function sets one bit to 1.  It accepts the
  18.      following arguments:
  19.  
  20.      _i    Must be of type integer.
  21.  
  22.      _p_o_s  Must be of type integer.  It must be nonnegative and less than
  23.           BBIITT__SSIIZZEE (_i).
  24.  
  25.      IIBBSSEETT is an elemental function.  The name of this intrinsic cannot be
  26.      passed as an argument.
  27.  
  28. RREETTUURRNN VVAALLUUEESS
  29.      The result type and type parameter are the same as _i.  The result has
  30.      the value of the sequence of bits of _i, except that bit _p_o_s of _i is
  31.      set to one.  The bit model defines the interpretation of an integer
  32.      value as a sequence of bits.  For more information on the bit model,
  33.      see the MMOODDEELLSS(3I) man page.
  34.  
  35. EEXXAAMMPPLLEESS
  36.      IIBBSSEETT((1122,, 11)) has the value 14.
  37.  
  38.      If VV has the value [1, 2, 3, 4], the value of IIBBSSEETT((PPOOSS == VV,, II == 00)) is
  39.      [2, 4, 8, 16].
  40.  
  41. SSEEEE AALLSSOO
  42.      MMOODDEELLSS(3I)
  43.  
  44.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  45.      printed version of this man page.
  46.  
  47.